//
//  PhotoSecondCollectionViewCell.m
//  旅游咨询
//
//  Created by 高建 on 15/4/18.
//  Copyright (c) 2015年 xubin. All rights reserved.
//

#import "PhotoSecondCollectionViewCell.h"

@implementation PhotoSecondCollectionViewCell
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    
    self.PhotoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    self.PhotoImageView.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.PhotoImageView];
    [_PhotoImageView release];
    
    
}
-(void)setSecondModel:(SecondPhotoModel *)secondModel
{
    if (_secondModel != secondModel) {
        [_secondModel release];
        _secondModel = [secondModel retain];
    }
    
    [self.PhotoImageView sd_setImageWithURL:[NSURL URLWithString:self.secondModel.photo_s]];
}





@end
